import request from '@/utils/request'
// 活动类型列表
export function getActivityAll(data) {
	return request({
		url: '/activity/type/all',
		method: 'post',
		data,
	})
}
// 活动列表
export function getPageActivityAll(data) {
	return request({
		url: '/mini/page/type/list',
		method: 'post',
		data,
	})
}
// 活动详情 多个使用
export function getActivityInfo(data) {
	return request({
		url: '/mini/activity/info',
		method: 'post',
		data,
	})
}
// 所有跟活动相关的操作接口  分社长审核全部都在


// 活动报名
export function activitySignUp(data) {
	return request({
		url: '/mini/activity/sign/up',
		method: 'post',
		data,
	})
} 
//候补报名
export function activitySignHb(data) {
	return request({
		url: '/mini/activity/sign/up/hb',
		method: 'post',
		data,
	})
} 
// 取消报名/取消候补
export function activitySignCancel(data) {
	return request({
		url: '/mini/activity/sign/cancel',
		method: 'post',
		data,
	})
} 
// 活动签到
export function activitySignIn(data) {
	return request({
		url: '/mini/activity/sign/in',
		method: 'post',
		data,
	})
} // 申请主持人
export function activitySignEmceeApply(data) {
	return request({
		url: '/mini/activity/sign/emcee/apply',
		method: 'post',
		data,
	})
} // 取消主持人
export function activitySignEmceeCancel(data) {
	return request({
		url: '/mini/activity/sign/emcee/cancel',
		method: 'post',
		data,
	})
}
// 发言人员列表
export function activitySignSpeakList(data) {
	return request({
		url: '/mini/activity/sign/speak/list',
		method: 'post',
		data,
	})
}
// 发言人员投票
export function activitySignSpeakVote(data) {
	return request({
		url: '/mini/activity/sign/speak/vote',
		method: 'post',
		data,
	})
}
// ------------------------------------我的活动
// 待参加 已参加 已发起
export function getActivityList(data) {
	return request({
		url: data.url,
		method: 'post',
		data,
	})
}
// 活动详情
export function infoActivity(data) {
	return request({
		url: '/mini/activity/self/info',
		method: 'post',
		data,
	})
}
//  活动编辑
export function editActivity(data) {
	return request({
		url: '/mini/activity/self/edit',
		method: 'post',
		data,
	})
}
//  活动删除
export function removeActivity(data) {
	return request({
		url: '/mini/activity/self/remove',
		method: 'post',
		data,
	})
}
export function activityCount(data) {
	return request({
		url: '/mini/activity/my/count',
		method: 'post',
		data,
	})
}



















export function getTypeAll(data) {
	return request({
		url: '/activity/type/all',
		method: 'post',
		data,
	})
}
// 拿到城市列表
export function getCityAll(data) {
	return request({
		url: '/city/all',
		method: 'post',
		data,
	})
}
// 发布活动或者保存草稿
export function activitySend(data) {
	return request({
		url: '/mini/activity/send',
		method: 'post',
		data,
	})
}
// 草稿
export function getDraftList(data) {
	return request({
		url: '/mini/activity/query/draft/list',
		method: 'post',
		data,
	})
}
// 模板库
export function getTemplateList(data) {
	return request({
		url: '/mini/activity/template/select/list',
		method: 'post',
		data,
	})
}
// 模板详情
export function getTemplateInfo(data) {
	return request({
		url: '/activity/template/info',
		method: 'post',
		data,
	})
}
